package sg.ImageShack.components
{
	import flash.filters.GlowFilter;
	
	import mx.containers.Canvas;

	public class GlowCanvas extends Canvas
	{
		private var glow : GlowFilter = new GlowFilter(0x000000,.6,20,20,2,2);
		private var _color : uint;
		private var _glowSize : int;
		private var _glowAlpha : Number;
		
		public function GlowCanvas()
		{
			super();
		}
		public function set glowAlpha(value : Number):void
		{
			_glowAlpha = value;
			glow.alpha = _glowAlpha;
			filters = [glow];
		}
		public function get glowAlpha():Number
		{
			return _glowAlpha;
		}
		public function set color(value : uint):void
		{
			_color = value;
			glow.color = _color;
			filters = [glow];
		} 
		public function get color():uint
		{
			return _color;
		}
		public function set glowSize(value : int):void
		{
			_glowSize = value;
			glow.blurX = _glowSize;
			glow.blurY = _glowSize;
			filters = [glow];
		}
		public function get glowSize():int
		{
			return _glowSize;
		}
	}
}